package leetcode.offer;

/**
 * ClassName: Offer64_SumNums
 * Description: leetcode-剑指offer 64 求1+2+...+n
 * date: 2021-11-14 21:41
 *
 * @author liyifan
 */
public class Offer64_SumNums {
    public int sumNums(int n){
        boolean flag = n > 1 && sumNums(n += sumNums(n - 1)) > 0;
        return n;
    }
}
